#include <iostream>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <vector>
#include <map>
#include <queue>
#include <cstdio>
#include <string>
#include <stack>
#include <set>
#define IOS ios::sync_with_stdio(false), cin.tie(0)
using namespace std;
typedef long long ll;
int main()
{
    IOS;
    ll n,m;
    cin>>n>>m;
    ll num=n/m;
    ll mod=n%m;
    for(ll i=1;i<=m-mod;i++){
        if(i<m-mod)cout<<num<<" ";
        else cout<<num;
    }
    for(ll i=m-mod+1;i<=m;i++){
        cout<<" "<<num+1;
    }
    cout<<endl;
    getchar();
    getchar();
    return 0;
}
